galileo_sdk.sdk.missions.MissionsSdk.create_and_upload_mission¶
- MissionsSdk.create_and_upload_mission(name, directory, description='', source_storage_id=None, destination_storage_id=None, source_path=None, destination_path=None, mission_type_id=None, settings=None, public=False)[source]¶
Create a new Mission in your Galileo account and upload input files from the specified directory in the same call.
- Parameters
name – str: Human readable name of the Mission that will be displayed in the UI
directory – str: filepath to the folder you want to upload as input files to the Mission
description – Optional[str]: Textual description of the Mission
mission_type_id – Optional[str]: Mission Framework Type UUID
destination_path – Optional[str]: Storage directory in the destination Cargo Bay
source_path – Optional[str]: Source directory in the source Cargo Bay
destination_storage_id – Optional[str]: UUID of the Cargo Bay where results will be stored
source_storage_id – Optional[str]: UUID of the Cargo Bay where source files are to be stored
settings – Optional[Dict[str, str]]: Mission Framework Type settings (can be retrieved via the get_mission_type_settings_info function) missions.get_mission_type_settings_info()
public – Optional[bool]: Boolean indicating if the resulting Mission should be listed as public (True) or private (False - default)
- Returns
Mission
- Example:
>>> project_folder = 'C:\Users\Galileo\SWMM_Project' # put your path here >>> swmm_mission = galileo.missions.create_and_upload_mission(name="SWMM Test2",directory=project_folder,description="testing",mission_type_id='f1934063-034a-4eba-adaa-e28bd95f138a',settings={"cpu_count":"1","memory_count":"3000","filename":"river","swmmversion":"5.1.007"}) >>> print(swmm_mission.mission_id)